CreateTextEncoding
Creates and returns a text encoding specification.
pascal TextEncoding CreateTextEncoding ( TextEncodingBase encodingBase, TextEncodingVariant encodingVariant, TextEncodingFormat encodingFormat);
encodingBase
- A base text encoding of type
TextEncodingRun
(page 46).encodingVariant
- A variant of the base text encoding. To specify the default variant for the base encoding given in the
encodingBase
parameter, you can use thekTextEncodingDefaultVariant
constant.encodingFormat
- A format for the base text encoding. To specify the default format for the base encoding, you can use the
kTextEncodingDefaultFormat
constant.- function result
- The text encoding specification that the function creates from the values you pass it.
DISCUSSION
When you create a text encoding specification, the three values that you specify are packed into an unsigned integer, which you can then pass by value to the functions that use text encodings.SEE ALSO
The data typeTextEncodingRun
(page 46)"Text Encoding Variant" (page 35)
"Text Encoding Format" (page 40)